
import Home from './views/Home.vue'
let routeList = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/',
    name: 'home',
    meta: {
      text: 'home'
    },
    isShow: true,
    icon: '1',
    component: Home,
    children: [{
      path: '/home',
      name: 'homePage',
      text: '',
      meta: {
        text: '主页',
        menuPath: '/home',
        menuBread: ['主页']
      },
      isShow: true,
      icon: '1',
      component: () => import('./views/index/homePage.vue')
    },
    {
      path: '/404',
      name: 'noFound',
      meta: {
        text: '404',
        menuPath: '/nofound',
        menuBread: ['未找到页面']
      },
      component: () => import('./views/noFound.vue')
    }
    ]
  },
  /*  {
     path: '/login',
     name: 'login',
     meta: {
       text: '登录',
       menuPath: '/login',
       menuBread: []
     },
     component: () => import('./views/Login.vue')
   }, */
  {
    path: '/register',
    name: 'register',
    meta: {
      text: '注册',
      menuPath: '/register',
      menuBread: []
    },
    component: () => import('./views/Register.vue')
  },

  {
    path: '*',
    redirect: '/404'
  }
]
export default routeList
